package com.lyj.sc.Test;

import lombok.Getter;

/**
 * @program: code-random
 * @description:
 * @author: lyj
 * @create: 2022-07-04 13:08
 * @version: 1.0
 * @Modifier By:
 **/
class Data {
    @Getter
    private static int counter = 0;
    public static int reset() {
        counter = 0;
        return counter;
    }
    public synchronized void wrong() {
        counter++;
    }
}